import { FMVCS } from "../../fgui/fmvc/FMVCS";
import Manager from "../../manager/Manager";
import HomeView from "./HomeView";
import { ConstDefine } from "../common/ConstDefine";
import { GlobalEvent } from "../global/Global";

export default class HomeCtrl extends FMVCS.FCtrl {
    rigisterEventListener(){
        this.on(GlobalEvent.UIListenID.UI_HomeView_Open, this.onOpenView, this);
    }

    onOpenView(){
        Manager.fui.open(ConstDefine.UI.HomeView, HomeView);
    }
}
